﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ZWZ.Web.WebAdmin
{
    public partial class pd : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CtrList1.Columns = new List<UCtrs.ListColumn>() { 
                     new UCtrs.ListColumn(){ Caption="名称", FieldName="Name"},
                     new UCtrs.ListColumn(){ Caption="类型", FieldName="Type", Width="100px"},
                };
                BindData();
            }
        }

        protected void BindData()
        {
            CtrList1.DataSource = DBProvider.DB.Ctx.Page_Info;
            CtrList1.DataBind();
        }
    }
}